<template>
  <div class="demo">
    <div class="demo-title">卡片模式</div>
    <div class="demo-content">
      <Calendar v-model:value="value" :fullscreen="false" @panel-change="onPanelChange" />
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import { Dayjs } from 'dayjs';
  import Calendar from '@sscd/calendar';
  const value = ref<Dayjs>();
  const onPanelChange = (val: string | Dayjs, mode: string) => {
    console.log(val, mode);
  };
</script>

<style lang="less" scoped>
  .demo {
    width: 300px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
  }
</style>
